package com.alibaba.citrus.ots.platform.enhance.sdo;

import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * @author zhoubc
 * @description: TODO
 * @date 2021/9/10 21:43
 */
@Data
public class OrganizationSDO implements Serializable {
    private static final long serialVersionUID = 4491582509105433153L;

    private String id;

    private String name;

    private String code;

    private String parentId;

    private String parentName;

    /**
     * 组织类型
     * @see com.alibaba.citrus.ots.platform.enhance.sdo.OrganizationTypeEnum
     */
    private Integer type;

    private String bizId;

    /**
     * 业务类型
     * @see com.alibaba.citrus.ots.platform.enhance.sdo.OrganizationBizTypeEnum
     */
    private String bizType;

    private Integer weight;

    private Boolean hasChildren;

    private String features;

    private String operatorId;

    private Integer status;

    private Integer version;

    private String outCode;

    private List<OrganizationRelationSDO> channelList;

    private List<OrganizationRelationSDO> scItemGroupList;

    private List<OrganizationSDO> children = null;

    public List<OrganizationSDO> getChildren() {
        return children;
    }

    private String label;

    private String value;

    public void setId(String id) {
        this.id = id;
        this.value = id;
    }

    public void setName(String name) {
        this.name = name;
        this.label = name;
    }
}
